package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HospitalAreaMapper;
import com.ruoyi.system.domain.HospitalArea;
import com.ruoyi.system.service.IHospitalAreaService;

/**
 * k院区Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-12
 */
@Service
public class HospitalAreaServiceImpl implements IHospitalAreaService 
{
    @Autowired
    private HospitalAreaMapper hospitalAreaMapper;

    /**
     * 查询k院区
     * 
     * @param id k院区主键
     * @return k院区
     */
    @Override
    public HospitalArea selectHospitalAreaById(Integer id)
    {
        return hospitalAreaMapper.selectHospitalAreaById(id);
    }

    /**
     * 查询k院区列表
     * 
     * @param hospitalArea k院区
     * @return k院区
     */
    @Override
    public List<HospitalArea> selectHospitalAreaList(HospitalArea hospitalArea)
    {
        return hospitalAreaMapper.selectHospitalAreaList(hospitalArea);
    }

    /**
     * 新增k院区
     * 
     * @param hospitalArea k院区
     * @return 结果
     */
    @Override
    public int insertHospitalArea(HospitalArea hospitalArea)
    {
        return hospitalAreaMapper.insertHospitalArea(hospitalArea);
    }

    /**
     * 修改k院区
     * 
     * @param hospitalArea k院区
     * @return 结果
     */
    @Override
    public int updateHospitalArea(HospitalArea hospitalArea)
    {
        return hospitalAreaMapper.updateHospitalArea(hospitalArea);
    }

    /**
     * 批量删除k院区
     * 
     * @param ids 需要删除的k院区主键
     * @return 结果
     */
    @Override
    public int deleteHospitalAreaByIds(Integer[] ids)
    {
        return hospitalAreaMapper.deleteHospitalAreaByIds(ids);
    }

    /**
     * 删除k院区信息
     * 
     * @param id k院区主键
     * @return 结果
     */
    @Override
    public int deleteHospitalAreaById(Integer id)
    {
        return hospitalAreaMapper.deleteHospitalAreaById(id);
    }

    @Override
    public List<HospitalArea> getlist() {
        return hospitalAreaMapper.getlist();
    }
}
